import request from '../utils/reuqest'
import type { LoginParams } from '../types/user'
export const loginAPI = (data: LoginParams) => {
    return request<{ token: string }>({
        url: "/park/login",
        method: "POST",
        data,
    });
};